package getproperties.ByValueAnnotate;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * @Description
 * @Author zhoucq
 * @Date 2025/9/28 16:52
 * @Version 1.0
 */
@Configuration
@PropertySource("classpath:application.properties")
public class DemoEntity {
    //application.properties 文件中配置
    @Value("${demo03.name}")
    private static String name;
    public String getName() {
        return name;
    }

}
